coreVersion: v1
kind: Item
includeTemplates:
  - default
  - intermediate
metadata:
  name: allowedPermission
  displayName: Allowed Permission
  pluralName: allowedPermissions
  displayPluralName: Allowed Permissions
  dataSource: main
  tableName: sec_allowed_permissions
  titleAttribute: label
  description: Allowed Permissions
  core: true
  versioned: false
  icon: SecurityScanOutlined
  performDdl: false
spec:
  attributes:
    label:
      type: string
      columnName: label
      displayName: Label
      description: Label
      length: 50
    default:
      type: bool
      columnName: is_default
      displayName: Default
      description: Default
      defaultValue: false
    source:
      type: relation
      relType: manyToOne
      target: item
      inversedBy: allowedPermissions
      columnName: source_id
      displayName: Source Item
      description: Source Item
      required: true
    target:
      type: relation
      relType: manyToOne
      target: permission
      columnName: target_id
      displayName: Target Permission
      description: Target Permission
      required: true
      colWidth: 160
